
const ejs = require('ejs');
const fs = require('fs');

let china = '中国';
let weather = '天气之子';

// let result = ejs.render(`走遍 ${china}`)

// let str = '吃遍 <%= china %>'

let str = fs.readFileSync('./01_.html').toString();

// console.log('str==>',str)

let result = ejs.render(str, {china: china,weather})


console.log('result=>',result);